package com.cg.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

public class PastureVO {

    @Data
    @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @TableName("pasture")
    @ApiModel(value="Pasture对象", description="牧场")
    public class PastureDTO implements Serializable {

        private static final long serialVersionUID = 1L;

        @TableId(value = "pastureId", type = IdType.AUTO)
        private Long pastureId;

        @ApiModelProperty(value = "牧场名称")
        private String pastureName;

        @ApiModelProperty(value = "场地规模")
        private Long size;

        @ApiModelProperty(value = "养殖规模")
        private Long breedingScale;

        @ApiModelProperty(value = "省市区")
        private Long cityId;

        @ApiModelProperty(value = "详细地址")
        private String address;

        @ApiModelProperty(value = "经度")
        private BigDecimal longitude;

        @ApiModelProperty(value = "纬度")
        private BigDecimal latitude;

        @ApiModelProperty(value = "牲畜品种")
        private String breedsLivestock;

        @ApiModelProperty(value = "状态")
        private Integer status;

        @ApiModelProperty(value = "存栏量")
        private Long stock;

        @ApiModelProperty(value = "创建时间")
        private LocalDateTime createTime;

        @ApiModelProperty(value = "修改时间")
        private LocalDateTime updatedTime;

        @ApiModelProperty(value = "当前页数")
        private Integer pageNumber;

        @ApiModelProperty(value = "页内行数")
        private Integer pageSize;

    }

}
